﻿@using Project.Resource.User
@{
    ViewBag.Title = "Gamebetplus-Contacts";
}
<script type="text/javascript">
    $(document).ready(function () {
        if ('@ViewBag.status' == 'success') {
            var id = "success_ticket" + culture;
            popupContact(id);
            return false;
        }
    });
    
</script>
<section class="container clearfix"> 
    <div class="left_content">
        <div id="deposit_ajax">

        </div>
        <div id="withdraw_ajax">

        </div>
        <script type="text/javascript">
            $(document).ready(function () {
                LoadDepositAjax(root, "ListDeposit", 1);
                LoadWithDrawAjax(root, "ListWithdraw", 1);
            });
        </script>        
        <div class="clearAll"></div>            
    </div>  
    <div class="info" style="width: 488px; margin-right: 15px; margin-left: 2px;">
        <div class="contact_content">
            <div class="header-main-article">                
                <p style="padding-top: 5px;">
                    @Html.Raw(ViewBag.contentHeder)
                </p>                            
                <div class="line"></div>
                <div class="padding15"></div>       
                @using (Html.BeginForm("Contacts", "User", FormMethod.Post, new { id = "formContact" }))
                {
                    @Html.ValidationSummary(true, ContactResource.ContactError)
                    @Html.AntiForgeryToken()                                        
                    <div class="clear"></div>                    
                    <p>
                        <label for="message">@ContactResource.Type<span>*</span></label>
                        @Html.DropDownList("CommonId",ViewBag.ContactType as SelectList, new {style="width:198px;height:25px;",@class="dropdowlist"})
                    </p>
                    <p>
                        <label for="email" style="margin-top: 3px;">E-mail<span>*</span></label>
                        @Html.TextBox("Email", "", new { @class = "cf_input", id = "Email" })
                        @Html.ValidationMessage("Email")
                    </p>
                          
                    <div class="clear"></div>
                    
                    <p>
                        <label for="message">Message <span>*</span></label>
                        @Html.TextArea("Body", "", new { @class = "inputTextarea", id = "Body", cols = "88", rows = "6",style="width:441px; height:98px;" })
                        @Html.ValidationMessage("Body")
                    </p>
                    <div class="clear"></div>
                    <div class="btSend_msg" onclick="$('#formContact').submit();"></div>          
                }                
            </div>            
            <div class="clear padding20"></div>
        </div>
    </div>
    <div id="content_right" style="float: left;">
        <div id="match_result">
        </div>

        <div class="clearAll"></div>

        <div id="match_inplay">
        </div>
    </div>
</section>
<script type="text/javascript">
    $(document).ready(function() {
        getMatchInPlay();
        getMatchResult();
        setInterval(function() {
            getMatchResult(), getMatchInPlay();
        }, 50000);
    });
</script>
